package com.cloudkinto.service.stock.exportVo.age;

import com.fasterxml.jackson.annotation.JsonFormat;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class ProductStockAgeExportVo {
    @Excel( name ="sku")
    private String sku;
    @Excel( name ="spu")
    private String spu;
    @Excel( name ="产品名称")
    private String productName;
    @Excel( name ="库存统计日期", exportFormat = "yyyy-MM-dd")
    private Date date;
    @Excel( name ="仓库")
    private String whCode;
    @Excel( name ="库存属性", replace = {"正品_0", "次品_1"})
    private int stockAttribute;
    @Excel( name ="上架日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+9")
    private Date inputDate;
    @Excel( name ="数量")
    private int quantity;
    @Excel( name ="库龄(天)")
    private int age;

//    private BigDecimal heightBs;
//    private BigDecimal widthBs;
//    private BigDecimal lengthBs;
}
